package com.demo2.support.service;

import java.util.Map;

import com.demo2.support.entity.ResultSet;

/**
 * The generic query service
 *
 * @author fangang
 */
public interface QueryService {

    /**
     * execute query and then return ResultSet.
     * If there are 'page' and 'size' in parameters, then do page.
     * If there are 'count' in parameters, then do not execute count.
     *
     * @param params the parameters the query need.
     * @return The ResultSet object with page, size, count, and so on.
     */
    public ResultSet query(Map<String, Object> params);

}